import type { RouteRecordRaw, RouteRecordRedirectOption } from "vue-router";
import type { resCategoryData } from '@/api/product/attr/type';
//定义小仓库数据的state类型
export interface UserState {
    token: string | null;
    menuRouters: changes[];
    username: string;
    avatar: string;
    buttons: string[]
}

type changes = RouteRecordRaw | changeType

interface changeType {
    redirect?: RouteRecordRedirectOption
}
//分类的仓库的数据类型
export interface cateGoryStore {
    c1Arr: resCategoryData[];
    c2Arr: resCategoryData[];
    c3Arr: resCategoryData[];
    c1Id: string | number;
    c2Id: string | number;
    c3Id: string | number;
}